package com.example.leo.mycharmingstudent.a0831;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.example.leo.mycharmingstudent.R;

public class TestSingleTaskActivity extends AppCompatActivity {

    //测试SingleTask模式的按钮
    private TextView tvTestSingleTask;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_test_single_task);

        findViews();
        initData();
        initEvent();
    }

    private void findViews() {
        tvTestSingleTask = findViewById(R.id.tv_test_single_task);
    }

    private void initData() {

    }

    private void initEvent() {
        tvTestSingleTask.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(TestSingleTaskActivity.this,
                        StartActivity.class));
            }
        });
    }
}
